#!/bin/bash

echo "Kompiliere..."
javac src/MainClass.java src/lib/base/EgoCalendar.java -classpath "/usr/share/java/servlet-api.jar:src/lib/google/google-collect-1.0/google-collect-1.0-rc2.jar:src/lib/google/gdata/java/sample/util/lib/sample-util.jar:src/lib/google/gdata/third_party/activation.jar:src/lib/google/gdata/third_party/mail.jar:src/lib/google/gdata/third_party/servlet-api.jar:src/lib/google/gdata/java/lib/gdata-calendar-2.0.jar:src/lib/google/gdata/java/lib/gdata-core-1.0.jar:src/lib/google/gdata/java/lib/gdata-media-1.0.jar:src/lib/google/gdata/java/lib/gdata-client-1.0.jar" -d WebContent/WEB-INF/classes/
# javac src/HelloWorld.java -classpath /usr/share/java/servlet-api.jar -d WEB-INF/classes/
echo ""
echo "Generiere .war Datei"
cd WebContent
jar cfM test_gadget.war *
cd ..
echo ""
mv WebContent/*.war .
echo "Fertig"

